<!--?xml version="1.0" encoding="UTF-8"?--><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <title>Git学习二：本地仓库基本操作</title>
 </head>
 <body>
  <div>
   基本命令：
  </div>
  <div>
   <img src="/html/Git2.resources/7502737A-BE3E-442A-879E-2126B8F3CE6D.png" height="432" width="454" />&nbsp;
  </div>
  <div>
   <br />
  </div>
  <div>
   &nbsp; &nbsp; 1: &nbsp; git init 初始化一个git仓库
  </div>
  <div>
   &nbsp; &nbsp; 2：git add . 添加文件进入git管理
  </div>
  <div>
   &nbsp; &nbsp; 3：git commit -m “添加提交的描述” 提交管理
  </div>
  <div>
   &nbsp; &nbsp; 4：git push --setupstream origin master 推送到远程仓库
  </div>
  <div>
   &nbsp; &nbsp; 5：git pull 存远程仓库下载代码
  </div>
  <div>
   &nbsp; &nbsp; 6：git log 查看提交的log日志
  </div>
  <div>
   &nbsp; &nbsp; 7：git status 查看是否提交状态
  </div>
  <div>
   &nbsp; &nbsp; 8：git diff 查看修改
  </div>
  <div>
   <br />
  </div>
  <div>
   <br />
  </div>
 </body>
</html>